<?php

use Phinx\Migration\AbstractMigration;

class AddColumnIsSolveInSystemNotifyMessageDetailTable extends AbstractMigration
{
    public function up()
    {
        $this->table("system_notify_message_detail")
            ->addColumn("is_solve", "enum", [
                'values' => 'yes,no',
                'default' => 'no',
                'comment' => '是否已解决',
                'null' => false,
            ])
            ->save();
    }

    public function down()
    {
        $this->table("system_notify_message_detail")
            ->removeColumn("is_solve")
            ->save();
    }
}
